package com.turtle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.turtle.entity.sql.BlogSort;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lijiayu
 * @date 2020/7/21
 * @description
 */
@Repository
public interface BlogSortMapper extends BaseMapper<BlogSort> {

    int getCountByIdNameUserId(@Param("id")Long id,@Param("name")String name,@Param("userId")Long userId);

    List<BlogSort> getListByStatus(@Param("status") Integer status,@Param("userId") Long userId);
}
